
ticketHub.controller('interOrderDetailCtrls',function($scope,$http,$stateParams){	
	var orderID = $stateParams.orderID;
	$http({
		url:'../order/interDetail',
		method:'post',
		data:{
		    "orderID": orderID
		}		
	})
	.then(function(data){
		var status = data.data.status;
		if(status=="1001"){						
			$scope.orderID=data.data.data.orderDetailQueryV2Response.orderDetail.orderID;//订单号
			$scope.orderStatus=data.data.data.orderDetailQueryV2Response.orderDetail.orderStatus;//订单状态	
			$scope.orderDetail=data.data.data.orderDetailQueryV2Response.orderDetail;
			$scope.flightSegment=data.data.data.orderDetailQueryV2Response.orderDetail.flightSegment;//航班信息list
			$scope.passengers=data.data.data.orderDetailQueryV2Response.orderDetail.passengers;//报价信息passengers的list
		
		}else{
			layer.alert(data.data.data.responseMetaInfo.reason)
		}		
	})
})
	
	
